import SvgIcon from './SvgIcon/index.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const allGlobalComponent: any = {
    SvgIcon
}
export default {
    install(app: any) {
        // 注册全局组件
        Object.keys(allGlobalComponent).forEach((key) => {
            app.component(key, allGlobalComponent[key])
        })
        // 注册element plus图标
        for (const [key,component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key,component)
        }
    }
}